home *** CD-ROM | disk | FTP | other *** search
- #include <limits.h>
-
- #include "DeskLib:Wimp.h"
- #include "DeskLib:WimpSWIs.h"
-
- #include "Shell.Extra.h"
-
- BOOL Shell_CheckYScrollIsBottom( window_handle window)
- { window_info info;
- info.window = window;
- Wimp_GetWindowInfo( &info);
- return ( info.block.scroll.y <=
- info.block.workarearect.min.y +
- (info.block.screenrect.max.y - info.block.screenrect.min.y)
- );
- }
-
-
-
- void Shell_MoveYScrollToBottom( window_handle window)
- { window_state state;
- Wimp_GetWindowState( window, &state);
- state.openblock.scroll.y = INT_MIN;
- Wimp_OpenWindow( &state.openblock);
- }
-
-
-